Skip to content

Fix margin - #44

Merged
cvanelteren merged 5 commits into
Ultraplot:mainfrom
cvanelteren:fix-margin
Jan 31, 2025
Merged

cvanelteren merged 5 commits into
Ultraplot:mainfrom
cvanelteren:fix-margin

Conversation

@cvanelteren

Copy link
Copy Markdown
Collaborator

Addresses #43. An issue popped up where the margins are widened when saving a figure without showing the figure first. This can be remedied by forcing a draw prior to calling mpl's savefig but feels a bit hacky. Not sure how to do this more cleanly.

@beckermr beckermr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's reenable the tests in the other PR before merging this one?

@cvanelteren

Copy link
Copy Markdown
Collaborator Author

The tests work, and I think the fix too judging from the image diffs.

@cvanelteren

Copy link
Copy Markdown
Collaborator Author

e.g.
image

@beckermr beckermr left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't fully follow. Do we expect the

@cvanelteren

Copy link
Copy Markdown
Collaborator Author

The margins on the right are tighter and the test fails on the images not being the same size. Some of the other tests show small shifts in lines or text.

@beckermr

Copy link
Copy Markdown
Collaborator

ahhh I see sorry - LGTM and merge away!

@cvanelteren

Copy link
Copy Markdown
Collaborator Author

No worries! Will put a comment on it for future Devs and merge it tomorrow.

@cvanelteren
cvanelteren enabled auto-merge (squash) January 31, 2025 07:44
@cvanelteren

Copy link
Copy Markdown
Collaborator Author

Will tag a minor bump today with these changes

@cvanelteren
cvanelteren disabled auto-merge January 31, 2025 07:56
@cvanelteren
cvanelteren merged commit 472626b into Ultraplot:main Jan 31, 2025
@cvanelteren
cvanelteren deleted the fix-margin branch January 31, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants